import request from '@/utils/request'

// 查询套餐配置列表
export function listMeal(query) {
    return request({
        url: '/system/meal/list',
        method: 'get',
        params: query
    })
}

// 新增套餐信息
export function addMeal(data) {
    return request({
        url: '/system/meal',
        method: 'post',
        data: data
    })
}

// 修改套餐配置
export function updateMeal(id, data) {
    return request({
        url: `/system/meal/${id}`,
        method: 'put',
        data: data
    })
}

// 获取套餐配置详细信息
export function getMeal(id) {
    return request({
        url: '/system/meal/' + id,
        method: 'get'
    })
}

// 删除套餐配置
export function delMeal(id) {
    return request({
        url: '/system/meal/' + id,
        method: 'delete'
    })
}
// 获取更多服务数据
export function getAllService() {
    return request({
        url: '/system/services/getAll',
        method: 'get',
    })
}